package com.onedec.attendance.entity;

import java.util.ArrayList;
import java.util.List;

public class OnedecStaffAttendanceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OnedecStaffAttendanceExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStaffAttendanceIdIsNull() {
            addCriterion("staff_attendance_id is null");
            return (Criteria) this;
        }

        public Criteria andStaffAttendanceIdIsNotNull() {
            addCriterion("staff_attendance_id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffAttendanceIdEqualTo(Integer value) {
            addCriterion("staff_attendance_id =", value, "staffAttendanceId");
            return (Criteria) this;
        }

        public Criteria andStaffAttendanceIdNotEqualTo(Integer value) {
            addCriterion("staff_attendance_id <>", value, "staffAttendanceId");
            return (Criteria) this;
        }

        public Criteria andStaffAttendanceIdGreaterThan(Integer value) {
            addCriterion("staff_attendance_id >", value, "staffAttendanceId");
            return (Criteria) this;
        }

        public Criteria andStaffAttendanceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_attendance_id >=", value, "staffAttendanceId");
            return (Criteria) this;
        }

        public Criteria andStaffAttendanceIdLessThan(Integer value) {
            addCriterion("staff_attendance_id <", value, "staffAttendanceId");
            return (Criteria) this;
        }

        public Criteria andStaffAttendanceIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_attendance_id <=", value, "staffAttendanceId");
            return (Criteria) this;
        }

        public Criteria andStaffAttendanceIdIn(List<Integer> values) {
            addCriterion("staff_attendance_id in", values, "staffAttendanceId");
            return (Criteria) this;
        }

        public Criteria andStaffAttendanceIdNotIn(List<Integer> values) {
            addCriterion("staff_attendance_id not in", values, "staffAttendanceId");
            return (Criteria) this;
        }

        public Criteria andStaffAttendanceIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_attendance_id between", value1, value2, "staffAttendanceId");
            return (Criteria) this;
        }

        public Criteria andStaffAttendanceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_attendance_id not between", value1, value2, "staffAttendanceId");
            return (Criteria) this;
        }

        public Criteria andStaffEmpIdIsNull() {
            addCriterion("staff_emp_id is null");
            return (Criteria) this;
        }

        public Criteria andStaffEmpIdIsNotNull() {
            addCriterion("staff_emp_id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffEmpIdEqualTo(Integer value) {
            addCriterion("staff_emp_id =", value, "staffEmpId");
            return (Criteria) this;
        }

        public Criteria andStaffEmpIdNotEqualTo(Integer value) {
            addCriterion("staff_emp_id <>", value, "staffEmpId");
            return (Criteria) this;
        }

        public Criteria andStaffEmpIdGreaterThan(Integer value) {
            addCriterion("staff_emp_id >", value, "staffEmpId");
            return (Criteria) this;
        }

        public Criteria andStaffEmpIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_emp_id >=", value, "staffEmpId");
            return (Criteria) this;
        }

        public Criteria andStaffEmpIdLessThan(Integer value) {
            addCriterion("staff_emp_id <", value, "staffEmpId");
            return (Criteria) this;
        }

        public Criteria andStaffEmpIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_emp_id <=", value, "staffEmpId");
            return (Criteria) this;
        }

        public Criteria andStaffEmpIdIn(List<Integer> values) {
            addCriterion("staff_emp_id in", values, "staffEmpId");
            return (Criteria) this;
        }

        public Criteria andStaffEmpIdNotIn(List<Integer> values) {
            addCriterion("staff_emp_id not in", values, "staffEmpId");
            return (Criteria) this;
        }

        public Criteria andStaffEmpIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_emp_id between", value1, value2, "staffEmpId");
            return (Criteria) this;
        }

        public Criteria andStaffEmpIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_emp_id not between", value1, value2, "staffEmpId");
            return (Criteria) this;
        }

        public Criteria andStaffAttAttgroupIdIsNull() {
            addCriterion("staff_att_attgroup_id is null");
            return (Criteria) this;
        }

        public Criteria andStaffAttAttgroupIdIsNotNull() {
            addCriterion("staff_att_attgroup_id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffAttAttgroupIdEqualTo(Integer value) {
            addCriterion("staff_att_attgroup_id =", value, "staffAttAttgroupId");
            return (Criteria) this;
        }

        public Criteria andStaffAttAttgroupIdNotEqualTo(Integer value) {
            addCriterion("staff_att_attgroup_id <>", value, "staffAttAttgroupId");
            return (Criteria) this;
        }

        public Criteria andStaffAttAttgroupIdGreaterThan(Integer value) {
            addCriterion("staff_att_attgroup_id >", value, "staffAttAttgroupId");
            return (Criteria) this;
        }

        public Criteria andStaffAttAttgroupIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_att_attgroup_id >=", value, "staffAttAttgroupId");
            return (Criteria) this;
        }

        public Criteria andStaffAttAttgroupIdLessThan(Integer value) {
            addCriterion("staff_att_attgroup_id <", value, "staffAttAttgroupId");
            return (Criteria) this;
        }

        public Criteria andStaffAttAttgroupIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_att_attgroup_id <=", value, "staffAttAttgroupId");
            return (Criteria) this;
        }

        public Criteria andStaffAttAttgroupIdIn(List<Integer> values) {
            addCriterion("staff_att_attgroup_id in", values, "staffAttAttgroupId");
            return (Criteria) this;
        }

        public Criteria andStaffAttAttgroupIdNotIn(List<Integer> values) {
            addCriterion("staff_att_attgroup_id not in", values, "staffAttAttgroupId");
            return (Criteria) this;
        }

        public Criteria andStaffAttAttgroupIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_att_attgroup_id between", value1, value2, "staffAttAttgroupId");
            return (Criteria) this;
        }

        public Criteria andStaffAttAttgroupIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_att_attgroup_id not between", value1, value2, "staffAttAttgroupId");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance1IsNull() {
            addCriterion("staff_attendance1 is null");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance1IsNotNull() {
            addCriterion("staff_attendance1 is not null");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance1EqualTo(String value) {
            addCriterion("staff_attendance1 =", value, "staffAttendance1");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance1NotEqualTo(String value) {
            addCriterion("staff_attendance1 <>", value, "staffAttendance1");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance1GreaterThan(String value) {
            addCriterion("staff_attendance1 >", value, "staffAttendance1");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance1GreaterThanOrEqualTo(String value) {
            addCriterion("staff_attendance1 >=", value, "staffAttendance1");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance1LessThan(String value) {
            addCriterion("staff_attendance1 <", value, "staffAttendance1");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance1LessThanOrEqualTo(String value) {
            addCriterion("staff_attendance1 <=", value, "staffAttendance1");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance1Like(String value) {
            addCriterion("staff_attendance1 like", value, "staffAttendance1");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance1NotLike(String value) {
            addCriterion("staff_attendance1 not like", value, "staffAttendance1");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance1In(List<String> values) {
            addCriterion("staff_attendance1 in", values, "staffAttendance1");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance1NotIn(List<String> values) {
            addCriterion("staff_attendance1 not in", values, "staffAttendance1");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance1Between(String value1, String value2) {
            addCriterion("staff_attendance1 between", value1, value2, "staffAttendance1");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance1NotBetween(String value1, String value2) {
            addCriterion("staff_attendance1 not between", value1, value2, "staffAttendance1");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance2IsNull() {
            addCriterion("staff_attendance2 is null");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance2IsNotNull() {
            addCriterion("staff_attendance2 is not null");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance2EqualTo(String value) {
            addCriterion("staff_attendance2 =", value, "staffAttendance2");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance2NotEqualTo(String value) {
            addCriterion("staff_attendance2 <>", value, "staffAttendance2");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance2GreaterThan(String value) {
            addCriterion("staff_attendance2 >", value, "staffAttendance2");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance2GreaterThanOrEqualTo(String value) {
            addCriterion("staff_attendance2 >=", value, "staffAttendance2");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance2LessThan(String value) {
            addCriterion("staff_attendance2 <", value, "staffAttendance2");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance2LessThanOrEqualTo(String value) {
            addCriterion("staff_attendance2 <=", value, "staffAttendance2");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance2Like(String value) {
            addCriterion("staff_attendance2 like", value, "staffAttendance2");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance2NotLike(String value) {
            addCriterion("staff_attendance2 not like", value, "staffAttendance2");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance2In(List<String> values) {
            addCriterion("staff_attendance2 in", values, "staffAttendance2");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance2NotIn(List<String> values) {
            addCriterion("staff_attendance2 not in", values, "staffAttendance2");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance2Between(String value1, String value2) {
            addCriterion("staff_attendance2 between", value1, value2, "staffAttendance2");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance2NotBetween(String value1, String value2) {
            addCriterion("staff_attendance2 not between", value1, value2, "staffAttendance2");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance3IsNull() {
            addCriterion("staff_attendance3 is null");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance3IsNotNull() {
            addCriterion("staff_attendance3 is not null");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance3EqualTo(String value) {
            addCriterion("staff_attendance3 =", value, "staffAttendance3");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance3NotEqualTo(String value) {
            addCriterion("staff_attendance3 <>", value, "staffAttendance3");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance3GreaterThan(String value) {
            addCriterion("staff_attendance3 >", value, "staffAttendance3");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance3GreaterThanOrEqualTo(String value) {
            addCriterion("staff_attendance3 >=", value, "staffAttendance3");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance3LessThan(String value) {
            addCriterion("staff_attendance3 <", value, "staffAttendance3");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance3LessThanOrEqualTo(String value) {
            addCriterion("staff_attendance3 <=", value, "staffAttendance3");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance3Like(String value) {
            addCriterion("staff_attendance3 like", value, "staffAttendance3");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance3NotLike(String value) {
            addCriterion("staff_attendance3 not like", value, "staffAttendance3");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance3In(List<String> values) {
            addCriterion("staff_attendance3 in", values, "staffAttendance3");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance3NotIn(List<String> values) {
            addCriterion("staff_attendance3 not in", values, "staffAttendance3");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance3Between(String value1, String value2) {
            addCriterion("staff_attendance3 between", value1, value2, "staffAttendance3");
            return (Criteria) this;
        }

        public Criteria andStaffAttendance3NotBetween(String value1, String value2) {
            addCriterion("staff_attendance3 not between", value1, value2, "staffAttendance3");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}